const router = require('koa2-router')();   //引入路由函数

router.get('/', async (ctx, next) => {
    ctx.redirect('/index')
})

router.get('/index', async (ctx, next) => {
    ctx.response.redirect('/static/index.html');
})

router.post('/jsonrpc', require("./jsonrpc"))

module.exports = router